// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addTaskList POST /api/taskList/add */
export async function addTaskListUsingPost(
  body: API.TaskListAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/taskList/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** deleteTaskList POST /api/taskList/delete */
export async function deleteTaskListUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/taskList/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getTaskListById GET /api/taskList/get */
export async function getTaskListByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTaskListByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTaskList_>('/api/taskList/get', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** getTaskListVOById GET /api/taskList/get/vo */
export async function getTaskListVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getTaskListVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseTaskListVO_>('/api/taskList/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listTaskListByPage POST /api/taskList/list/page */
export async function listTaskListByPageUsingPost(
  body: API.TaskListQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTaskList_>('/api/taskList/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyTaskListByPage POST /api/taskList/list/page/my */
export async function listMyTaskListByPageUsingPost(
  body: API.TaskListQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTaskList_>('/api/taskList/list/page/my', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyHistoryTaskListByPage POST /api/taskList/list/page/my/history */
export async function listMyHistoryTaskListByPageUsingPost(
  body: API.TaskListQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTaskList_>('/api/taskList/list/page/my/history', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listTaskListVOByPage POST /api/taskList/list/page/vo */
export async function listTaskListVoByPageUsingPost(
  body: API.TaskListQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageTaskListVO_>('/api/taskList/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTaskList POST /api/taskList/update */
export async function updateTaskListUsingPost(
  body: API.TaskListUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/taskList/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateTaskListStatus POST /api/taskList/updateTaskListStatus */
export async function updateTaskListStatusUsingPost(
  body: API.TaskListUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/taskList/updateTaskListStatus', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
